package com.service.impl;


import com.domain.Account;
import com.mapper.AccountMapper;
import com.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("accountService")
public class AccountServiceImpl implements AccountService {

    @Autowired
    private AccountMapper accountMapper;

    @Override
    public Object save(Account account){

        accountMapper.save(account);
        return null;
    }

    @Override
    public Object findAll() {
        accountMapper.findAll();
        return null;
    }

    @Override
    public void delete(Integer id) {
       accountMapper.delete(7);
    }
}
